
package principal;

import javax.swing.SwingUtilities;
import javax.swing.UIManager;

import recursos.Sesion;
import controlador.SeguridadController;
import ventanas.FLogin;

public class Principal {

	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				try {
					com.jtattoo.plaf.acryl.AcrylLookAndFeel
							.setCurrentTheme(Sesion.getTheme());
					UIManager.setLookAndFeel("com.jtattoo.plaf.acryl.AcrylLookAndFeel");
					FLogin login = new FLogin();
					login.setVisible(true);
					login.setLocationRelativeTo(null);
					SeguridadController controlador = new SeguridadController(
							login);
					login.setControlador(controlador);		
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}
}
